x86/smp: check APIC ID on AP bringup
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 20 Dec 2019 15:28:27 +0000 (16:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 Dec 2019 15:28:27 +0000 (16:28 +0100)
commit3d05407025ed1f83f492f81ba8175fa26b1e2fb3
tree254aed8fbd696d9d7dcc69b8400bc29a7edf2930
parentc08cbf7fb891943508956d85a83b8c1799b7dc2c
x86/smp: check APIC ID on AP bringup

Check that the processor to be woken up APIC ID is addressable in the
current APIC mode.

Note that in practice systems with APIC IDs > 255 should already have
x2APIC enabled by the firmware, and hence this is mostly a safety
belt.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/smpboot.c